<%-- 
    Document   : teste
    Created on : 05/12/2009, 20:47:42
    Author     : eduardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>Gerenciador Financeiro - Pagina de Login</title>
        </head>
        <body>
            <h:form>
                <h1>Gerenciador Financeiro</h1><br>

                <table>
                    <tr>
                        <td colspan="2">
                            <h:messages />
                        </td>
                    </tr>
                    <tr>
                        <td width="10%">
                            <h:outputText value="Usuario: " />
                        </td>
                        <td width="90%">
                            <h:inputText binding="#{LoginFace.formBean.loginUI}" value="#{LoginFace.formBean.login}" />
                        </td>
                    </tr>
                    <tr>
                        <td width="10%">
                            <h:outputText value="Senha: " />
                        </td>
                        <td width="90%">
                            <h:inputSecret binding="#{LoginFace.formBean.passwordUI}" value="#{LoginFace.formBean.password}" validator="#{LoginFace.validateLoginAndPassword}" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h:commandButton value="Logar" action="#{LoginFace.doLogin}" />
                        </td>
                    </tr>
                </table>
                

                
            </h:form>
            
        </body>
    </html>
</f:view>
